kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 09:03:54 +0000 (10:03 +0100)]
Fix 64-bit compile of pygrub. From Charles Duffy.
kaf24@firebug.cl.cam.ac.uk [Tue, 11 Oct 2005 09:01:23 +0000 (10:01 +0100)]
Fix the legacy %-build targets for dist installation of
guest kernels.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 23:03:00 +0000 (00:03 +0100)]
Fix for "unsubscriptable object" error, courtesy of Kurt Garloff
<garloff@suse.de> -- missing comma in op_mem_target_set.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 20:45:31 +0000 (21:45 +0100)]
Fix changeset banner for source tarballs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 20:08:16 +0000 (21:08 +0100)]
Local repo version number in Xen boot log.
Signed-off-by: Dan Smith <danms@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 19:56:46 +0000 (20:56 +0100)]
Kernel makefiles do not define $(LN).
Signed-off-by: Rik van Riel <riel@redhat.com>
emellor@ewan [Mon, 10 Oct 2005 18:06:14 +0000 (19:06 +0100)]
This patch fixes an error in the xm create path when the
xc.domain_create call fails (eg, when ACM policy prevents creation of a
domain). When xc.domain_create fails, dompath never gets set.
Signed-off-by: Tom Lendacky <toml@us.ibm.com>
emellor@ewan [Mon, 10 Oct 2005 18:04:03 +0000 (19:04 +0100)]
When a domain is introduced to xenstored, check whether this has already
happened, and only return EINVAL if the event channel details have changed.
This allows Xend to introduce domains when it starts without having to be
concerned about whether xenstored has restarted at the same time. This
behaviour used to be subsumed by the bind_interdomain semantics for existing
channels, but in the simplification of that interface, the check must now move
to userspace.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 17:59:57 +0000 (18:59 +0100)]
Mention -s option in usage.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 17:58:46 +0000 (18:58 +0100)]
Fix completely broken xenstore_read function.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 17:16:03 +0000 (18:16 +0100)]
Fix cancellation of pending watch events on watch unregistration.
Use wait_event_interruptible() so that our kernel threads spend
their time in the more acceptable 'S' state rather than the more
worrying 'D' state.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 15:57:41 +0000 (16:57 +0100)]
Fire watch callbacks on their own workqueue. Mainly this is
to make debugging easier (it's hard if an error takes out
the default workqueue!). Also, watch callbacks can be
arbitrarily long-lived, so it's more polite.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 15:16:41 +0000 (16:16 +0100)]
Merged.
emellor@ewan [Mon, 10 Oct 2005 15:15:48 +0000 (16:15 +0100)]
Rewritten XendLogging to not be a singleton class, and not have methods used
from nowhere at all.
Log to a temporary file if permission is denied to log to /var/log/xend.log,
as happens when you are not root. Fixes bug #305.
Remove all the log-related garbage from XendRoot -- just about every module
was going straight to XendLogging.log already, so there was no need to have
XendRoot replicate this functionality.
Remove XendRoot.event_handler, which hasn't been in use since the EventServer
was removed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 14:38:01 +0000 (15:38 +0100)]
xenstored now supports multiple concurrent transactions per
connection, plus interleaving of transactional and
non-transactional accesses. A transaction identifier is added
to the xsd_sockmsg header structure (0 means 'not in context
of a transaction'). The user and kernel xs interfaces accept
a pointer to a transaction handle where appropriate --
currently this is directly cast to an integer identifier in
the client library / kernel driver, but will allow for keeping
extra dynamic client-side state in future if we need to.
The transaction mutex has now gone. It's replaced with a
read-write mutex, but this is only acquired for exclusive
access during suspend/resume, to ensure there are no in-progress
transactions.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Mon, 10 Oct 2005 13:46:53 +0000 (14:46 +0100)]
Merged.
emellor@ewan [Mon, 10 Oct 2005 13:42:38 +0000 (14:42 +0100)]
Added error logging to the block hotplug script, and support facilities for
that.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 10 Oct 2005 10:37:10 +0000 (11:37 +0100)]
No need to gate xenstored reading requests from a
connection on whether there are pending replies/watches.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 22:53:03 +0000 (23:53 +0100)]
Simplify reply logic in xenstored. Maintain a linked list
of pending replies that are sent out in order.
Currently we only read new requests when the reply list is
empty. In fact there is no good reason for this restriction.
Another interesting point is that (on my test machine)
hotplug blk setup fails if xenstored_client connects to
xenstored via the unix domain socket rather than through the
kernel --- this points to some user/kernel races that are
'fixed' by the extra serialisation of the in-kernel mutexes.
It definitely needs looking into.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 20:29:10 +0000 (21:29 +0100)]
Extend xenbus/xenstore client interface to include a transaction
handle on appropriate operations. Next step is to plug this
through to the store daemon and get rid of the nasty serialisation
mutex for transactions.
Signed-off-by: Keir Fraser <keir@xensource.com>
smh22@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 19:55:53 +0000 (20:55 +0100)]
Added some clarifying comments regarding xenbus/xenstore kernel startup.
Signed-off-by: Steven Hand <steven@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 17:52:54 +0000 (18:52 +0100)]
Refactor xenbus to break up the xenbus_lock and permit watches
to fire concurrently with request/reply pairs. Remove
watch_ack message: no longer needed.
Signed-off-by: Keir Fraser <keir@xensource.com>
vh249@kneesaa.uk.xensource.com [Sun, 9 Oct 2005 16:29:24 +0000 (12:29 -0400)]
Don't increment mi->usage is alloc_major_info return NULL
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
smh22@firebug.cl.cam.ac.uk [Sun, 9 Oct 2005 15:26:08 +0000 (16:26 +0100)]
Fix cpu hotplug issue with SMP guests (including save/restore).
Was a nasty one - worth ensuring we cast to u64 whenever playing
with Xen time values.
Signed-off-by: Steven Hand <steven@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 11:20:12 +0000 (12:20 +0100)]
Alter logging statements to move the interpolation inside the logging function,
meaning that it will only occur if the message is to be logged.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 11:16:23 +0000 (12:16 +0100)]
Remove unnecessary extraction of ssidref from config inside restore -- this
is now handled by the construct call, which restore has recently started using.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 11:14:46 +0000 (12:14 +0100)]
/home/emellor/log2
emellor@ewan [Sun, 9 Oct 2005 10:59:37 +0000 (11:59 +0100)]
Remove cruft.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 10:57:24 +0000 (11:57 +0100)]
Remove code seeding RNG from /dev/urandom. The random module's default RNG is
already seeded from the clock, so this is unnecessary, non-portable, and
expensive. This should improve start-up time of Xend. Replace twisty maze of
code with something sensible.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 10:53:34 +0000 (11:53 +0100)]
Append a newline to error messages, so that they are parsed by XendCheckpoint.py
correctly.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Sun, 9 Oct 2005 10:52:24 +0000 (11:52 +0100)]
Change xenbus callbacks to match new signature of xenbus_watch.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 18:19:27 +0000 (19:19 +0100)]
Make libxenstore thread-safe. It also spawns an internal
thread to read messages from the comms channel.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 09:22:01 +0000 (10:22 +0100)]
Fix locking in /dev/xen/evtchn ioctl.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 08:54:06 +0000 (09:54 +0100)]
Add one more parameter to __vmread_vcpu and clean some code.
Signed-off-by: Xin Xiaohui <Xiaohui.xin@intel.com>
Signed-off-by: Li Chengyuan <Chengyuan.li@intel.com>
Signed-off-by: Nakajima Jun <jun.nakajima@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 08:51:43 +0000 (09:51 +0100)]
Add a bzImage target for xen kernels for consistency with
native architectures.
Signed-off-by: Rik van Riel <riel@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 8 Oct 2005 08:49:28 +0000 (09:49 +0100)]
Xen-friendly glibc selection: appropriate ld-linux can parse
the vsyscall page ELF notes and use the "nosegneg" glibc variant
to ensure that things work fine.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Roland McGrath <roland@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:36:26 +0000 (23:36 +0100)]
Remove linux-2.4 sparse tree.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:22:35 +0000 (23:22 +0100)]
Some cleanup in TPM-related files and implementation of functionality that
got lost when switching to xenbus.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:21:23 +0000 (23:21 +0100)]
Re-enable the pygrub build and fix the build with older
e2fsprogs (tested on RHEL4 with e2fsprogs-1.35 and rawhide
with e2fsprogs-1.38)
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 22:17:24 +0000 (23:17 +0100)]
Move mmio operation structure from domain to vcpu.
Also do some cleanup.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 15:49:29 +0000 (16:49 +0100)]
Rationalise xenstore header files a little. xenstored.h,
which defines aspects of the 'wire' protocol between
xs daemon and clients in user and kernel land, is now
xs_wire.h and moved to xen's public/io directory. From there
it is more easily accessible by kernels.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 14:52:43 +0000 (15:52 +0100)]
Update kernel watch API to pass the array of watch arguments to the callback
instead of just passing the node.
This allows us to extend watches to have additional arguments (like domids).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 14:51:53 +0000 (15:51 +0100)]
Change xs_read_watch interface to return a sized array (in userspace and in
kernel).
Add index macros (XS_WATCH_*) for accessing the array to allow for future
expansion.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 14:49:33 +0000 (15:49 +0100)]
Clean up file vmx.c:
1) change d to v.
2) remove trailing spaces.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 13:47:45 +0000 (14:47 +0100)]
Add installation of the udev rules if appropriate. With a normal 'make
install', the udev rules will be installed if udev version is >= 059;
otherwise, the hotplug rules get installed.
When 'make dist' is done, we set a variable so that both hotplug and
udev rules are installed into the dist tarball. install.sh then takes
care of picking the proper rules.
Also changes the hotplug check to look for a proper udev version
Signed-off-by: Jeremy Katz <katzj@redhat.com>
emellor@ewan [Fri, 7 Oct 2005 12:34:45 +0000 (13:34 +0100)]
Merged.
emellor@ewan [Fri, 7 Oct 2005 12:34:10 +0000 (13:34 +0100)]
Regig the construction of new domains so that restore and create can share the
construct method. This ensures that the domain will have any stale paths in
the store removed on restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 12:15:52 +0000 (13:15 +0100)]
Add udev rules that map similar to the hotplug agent. Based off of what
Chris Bainbridge posted the end of last week but doing things as
directly as possible.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 12:13:58 +0000 (13:13 +0100)]
Move the block-phy and block-file handling into a common
block script that gets called by the hotplug agent.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 12:11:41 +0000 (13:11 +0100)]
The hotplug agent sets the path now, but that's not as practical to do
with udev rules. So instead, make sure that the path is set in the vif
scripts themselves.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:54:38 +0000 (11:54 +0100)]
Remove bind_evtchn_to_irq/unbind_evtchn_from_irq from the
evtchn kernel interface. Fix error path in bind_evtchn_to_irqhandler.
Fix backend drivers to avoid double freeing IRQs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:16:28 +0000 (11:16 +0100)]
The attached fixes a few things to make the blkfront and netfront
drivers better follow the Linux driver model. Changes include:
* Rename xenbus_register functions to more closely match what's used
with other buses. Adjust callers
* There's no need to wait for the first vbd of vif and do a timeout if
they fail, device probing is async
* Add sysfs attributes for examining type and nodename
* Set device of gendisk so /sys/block/foo/device points to the right
place
* Set device of net_device so that /sys/class/net/foo/device points to
the right place
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:04:41 +0000 (11:04 +0100)]
merge.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:03:56 +0000 (11:03 +0100)]
This patch copies the NAT scripts in tools/examples/ to
/etc/xen/scripts/.
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
emellor@ewan [Fri, 7 Oct 2005 10:02:09 +0000 (11:02 +0100)]
Merge.
emellor@ewan [Fri, 7 Oct 2005 10:01:23 +0000 (11:01 +0100)]
Merge.
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 10:00:56 +0000 (11:00 +0100)]
Move construct_vmcs to arch_vmx_do_launch.
Currently, since VMX guest is brought up by xen0, construct_vmcs is
executed in xen0 hypervisor context, this is not reasonable. This=20
patch moves construct_vmcs to arch_vmx_do_launch.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
emellor@ewan [Fri, 7 Oct 2005 09:58:41 +0000 (10:58 +0100)]
Rename the source domain on migration, regardless of the live flag. This fixes
localhost non-live migration, and bug #297.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 7 Oct 2005 09:57:13 +0000 (10:57 +0100)]
Big simplification of the Xen event-channel interface.
EVTCHNOP_bind_interdomain in particular is much simpler.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 23:21:00 +0000 (00:21 +0100)]
Fix conflicting merge.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 18:43:11 +0000 (19:43 +0100)]
Merged.
emellor@ewan [Thu, 6 Oct 2005 18:41:29 +0000 (19:41 +0100)]
Remove xm commands block-refresh and vbd-refresh, as these are unsupported.
Allow xm block-detach to take a device name as well as a device ID. This
closes bug #285 and fixes xm-test's 01_block-destroy_btblock_pos.py and
02_block-destroy_rtblock_pos.py.
Rename and reconnect XendDomainInfo.configureDevice to reconfigureDevice.
There is nothing using this at the moment, mind you.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Oct 2005 16:02:38 +0000 (17:02 +0100)]
User tools send evtchn notifications via /dev/xen/evtchn
rather than using hypercall directly.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Oct 2005 15:07:52 +0000 (16:07 +0100)]
Change how event channels are allocated and used by the control
tools. /dev/xen/evtchn is now used by daemons to connect to
remote domains: the advantage is that the local ports are garbage
collected automatically if the daemon dies. xen no longer
constructs end-to-end event-channel port pairs -- it allocates an
unbound port in new domU and writes that port to xenstore. It is
then picked up by teh appropriate daemon which does interdomain bind
via /dev/xen/evtchn.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 14:12:31 +0000 (15:12 +0100)]
Added Zope's test.py, and a unit test to sxp. This test itself isn't very
exciting, but it's there to encourage the creation of more interesting ones. A
test target has been added to the main Makefile, and the one in tools/python.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 10:12:55 +0000 (11:12 +0100)]
Merged.
emellor@ewan [Thu, 6 Oct 2005 10:11:16 +0000 (11:11 +0100)]
Allow shutdown code SHUTDOWN_HALT, which we handle here in exactly the same
way as POWEROFF. The tools use the distinction when the code is returned.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 10:09:14 +0000 (11:09 +0100)]
Rename all dying domains to be prefixed with Zombie. This allows a new domain
to be created with the same name, fixing the race condition inside XendDomain
that caused bug #278.
Move the state_set(TERMINATED) call onto the end of cleanupDomain rather than
destroyDomain, so that this flag is set when XendDomain cleans up a domain
that was killed without going through Xend.
Remove is_terminated, as this check is no longer necessary, since we are using
Zombie prefixes instead.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 10:04:49 +0000 (11:04 +0100)]
Reduce the log level for the 'cannot recreate information for dying domain'
message for all but the first refresh when Xend starts.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 6 Oct 2005 09:42:32 +0000 (10:42 +0100)]
Ensure that all fields of evtchn_op_t are initialised when
making an event_channel_op hypercall. Stefan Berger gets the
credit for diagnosing nasty domU driver problems that were a
result of garbage fields.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 09:16:50 +0000 (10:16 +0100)]
Issue diagnostic if we find dying domains on Xend restart, because we will not
be able to show them any longer, as the paths in the store have gone. Don't
call cleanupVm when a domain dies, as localhost-migrating VMs will be blown
away by this (there is actually a race between the saving process and the
resuming process). This fixes bug #276.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Thu, 6 Oct 2005 09:13:11 +0000 (10:13 +0100)]
Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
vh249@kneesaa.uk.xensource.com [Wed, 5 Oct 2005 23:16:29 +0000 (19:16 -0400)]
mixup in vcpu-enable and vcpu-disable help string
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 22:47:09 +0000 (23:47 +0100)]
Reformat the pfn_info structure to ensure that
lock cmpxchg8b instructions occur only on naturally
aligned 8-byte memory values. This is needed for some
NUMA x86 systems.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Aravindh Puthiyaparambil <first.last@unisys.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 22:15:00 +0000 (23:15 +0100)]
Activate suspending/resuming of the TPM interface and add
some missing code to tpmif.py.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 18:15:56 +0000 (19:15 +0100)]
Gentoo compatible stuff has to be done *before* the set -e. You could also do
the which in the if with a combination of ! and || after the set -e but I think
it's cleaner to just do it before the set -e.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 18:14:13 +0000 (19:14 +0100)]
EVTCHNOP_alloc_unbound can allocate a port in an arbitrary
domain (only if the caller is sufficiently privileged).
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Wed, 5 Oct 2005 17:06:42 +0000 (18:06 +0100)]
Fix the handling of VCPUs, specifically wrt the broken VCPU hotplugging, bug
#280. The cpu/<id>/availability paths had moved into /vm, but that is not
easily accessible by the hotplugging driver, so I have created a /vm entry
called vcpu_avail, so that the setting migrates along with the domain, and
moved the cpu/<id> ones back to /local/domain.
Don't try and destroy the domain twice if it fails within construct. This
wasn't harming anything, but there's no need.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 5 Oct 2005 16:48:36 +0000 (17:48 +0100)]
Change boolean config option parsing to allow True and Y and similar useful
things.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 16:07:01 +0000 (17:07 +0100)]
Fix save/restore -- too much work being done in
interrupts-off context.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 15:54:09 +0000 (16:54 +0100)]
Emulate guest reads of CR4, masking features that Xen
does not export to guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 15:32:07 +0000 (16:32 +0100)]
Send event-channel notification from console daemon
to guest console driver when the output ring is
emptied. This can be used to kick transmission of
more characters without needing to poll.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 14:15:50 +0000 (15:15 +0100)]
Revert changes checked in by mistake in previous changeset.
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 14:05:38 +0000 (15:05 +0100)]
Clean up DESTDIR handling. Default install is to root
directory (/). This is only overridden automatically
for the 'make dist' targets and their legacy aliases
(make {xen,tools,kernels,docs}).
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Wed, 5 Oct 2005 13:40:35 +0000 (14:40 +0100)]
Merge (with trepidation).
emellor@ewan [Wed, 5 Oct 2005 13:38:19 +0000 (14:38 +0100)]
Recover from name uniqueness violation by renaming. Fixes bug #277.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 13:14:04 +0000 (14:14 +0100)]
Add Gentoo handling to network-bridge. Based on patches
from Jon Mason and Anthony Liguori.
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 13:10:49 +0000 (14:10 +0100)]
Handle the case where there are no spaces or parameters
after the image name on the command line.
Signed-off-by: Mike Day <mdday@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 13:06:23 +0000 (14:06 +0100)]
Fix DOM0_PHYSINFO to return correct value for total
system memory.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 12:54:36 +0000 (13:54 +0100)]
Currently, the scripts in /etc/xen/scripts won't get overwritten if they
exist which means that changes can easily not get updated. This makes
it so the scripts always get installed.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 12:52:18 +0000 (13:52 +0100)]
The attached patch places an updated TPM driver into the sparse directory.
This driver allows to build a Xen0 kernel with TPM front- and backend
support and use it as a user domain kernel - something that is not
possible to do with the current TPM driver in the 2.6.12 kernel. Once this
driver appears in similar form in the kernel, I will remove it from the
sparse directory.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 12:41:59 +0000 (13:41 +0100)]
Restructure the makefiles used to drive builds of linux 2.6 kernels.
A common file eliminates duplication across makefiles.
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 5 Oct 2005 12:32:00 +0000 (13:32 +0100)]
Move setting of configuration variables to Config.mk.
Allows for partial-tree builds to be invoked from a sub-directory.
Allow for users to include a ".config" with additional custom settings.
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
emellor@ewan [Wed, 5 Oct 2005 10:43:23 +0000 (11:43 +0100)]
Removed the EventServer, replacing the events fired with simple logging
messages. This closes bug #281. Removed references to XendRoot where these
have become unnecessary either through the work above or just through time.
Renamed some parameters in event.py, to mark them as unused. Fix a call to a
base class constructor there too.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 4 Oct 2005 23:11:30 +0000 (00:11 +0100)]
imported patch /home/emellor/block_detach.patch
emellor@ewan [Tue, 4 Oct 2005 23:00:42 +0000 (00:00 +0100)]
Explicitly close files on save and restore. Rename all local variables named id or slice so as not to clash with the builtins.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 4 Oct 2005 22:56:42 +0000 (23:56 +0100)]
Explicitly close files.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 4 Oct 2005 17:23:58 +0000 (18:23 +0100)]
Clean up domains if creation/restoration fails.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 4 Oct 2005 16:54:33 +0000 (17:54 +0100)]
Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Tue, 4 Oct 2005 16:49:52 +0000 (17:49 +0100)]
Merge the child-process handling of the save and restore functions into one
forkHelper function. Change the handling of file descriptor closure to wait
until both stdout and stderr descriptors have closed. This may fix the
intermittent bug seen whereby xm restore; xend restart leaves the domain in a
misconfigured state, presumably because IntroduceDomain is not being called by
XendCheckpoint.restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>